package test.past;

public class Mugs {
	Mug mug1;
	Mug mug2;
	{
		mug1=new Mug(1);
		mug2=new Mug(2);
		System.out.println("mug1&2 is initialized");
	}
	Mugs(){
		System.out.println("Mug()");
	}
	Mugs(int maker){
		System.out.println("Mug(int)");
	}
	
	public static void main(String[] args) {
		System.out.println("in main");
		new Mugs();
		System.out.println("-----------------------------------");
		new Mugs(1);
		System.out.println("-----------------------------------");
	}
}
class Mug{
	Mug(int maker){
		System.out.println("Mug("+maker+")");
	}
	void f(int maker){
		System.out.println("f("+maker+")");
	}
}